﻿/* 8. Create a console application that calculates and prints the square of the number 12345. */

using System;

public class SquareNumber
{
    private static double number = 12345;
    
    public static void Main()
    {
        InputNumber();
        Console.WriteLine("{0} * {0} = {1}", number, SquareOf(number));
    }

    public static double SquareOf(double number)
    {
        return number * number;
    }

    public static void InputNumber()
    {
        do
        {
            Console.Clear();
            Console.Write("Enter the number : ");
            if (double.TryParse(Console.ReadLine(), out number))
                break;

        } while (true);
    }
}